#include "AccessLevelNode.h"

#include "Output/Console.h"

#include "ScriptCompiler/Token/Token.h"

void CAccessLevelNode::DebugPrint(int32_t InDepth)
{
    //print depth
    for (int32_t i = 0; i < InDepth; i++)
    {
        WH::Print(U" \t");
    }

    CString Print;
    for(auto& Token : AccessLevel)
    {
        Print+=Token->ToString();
        Print+=U" ";
    }

    WH::Print(Print);

}

std::shared_ptr<CScriptToken> CAccessLevelNode::GetFirstToken()
{
    if(AccessLevel.size()>0)
    {
        return AccessLevel[0];
    }
    else
    {
        return nullptr;
    }
}
